<?php
/**
 * Created by PhpStorm.
 * User: Korbin
 * Date: 2018/11/9
 * Time: 13:49
 */

namespace app\script\command;


use think\console\Command;

class Base extends Command
{
    protected $redis;

    public function __construct()
    {
        parent::__construct();
        $this->redis = new \Redis;
        $redisConf = config('redis_config');
        $this->redis->connect($redisConf['host'], $redisConf['port']);
        $this->redis->auth($redisConf['auth']);
    }
}